package com.gsoe.problem.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gsoe.problem.po.Problem;
import com.gsoe.problem.po.TestProblem;
import com.gsoe.problem.vo.ProblemVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 测验与题目中间表 Mapper 接口
 * </p>
 *
 * @author xiaoma
 * @since 2024-10-27
 */
public interface TestProblemMapper extends BaseMapper<TestProblem> {

    @Select("select p.* from problem as p inner join test_problem as tp on p.id = tp.problem_id where tp.test_id=#{textId}")
    List<Problem> getTestProblemList(@Param("textId") Long textId, Long loginId);
}
